INPUTS

attr
attribute you want to set.
val
value to set the attribute to.